package org.jeecg.modules.fund.service;

import com.baomidou.mybatisplus.extension.service.IService;
import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.fund.entity.FundTrade;

import java.util.Date;

public interface IFundTradeService extends IService<FundTrade> {
    /**
     * 创建交易信息
     * @param trade
     * @return
     */
    Result<FundTrade> createTrade(FundTrade trade);

    /**
     * 生成实际交易日期
     * @param tradeDate
     * @param tradeDateType
     * @return
     */
    String createRealTradeDate(Date tradeDate,Integer tradeDateType,String fundId);
}
